
<script type="text/javascript" charset="utf-8">

		var department_id;
		var opersgroup_id;
		var ogproject_user;
		var ogproject_opuser;
		$(function(){
			
			department_id = $('#department_id').combobox({
				url:'/operationpost/departmentinfo',
				valueField:'id',
				textField:'department_name',
				editable:false,
				panelHeight:'150',
				required:true,
				value:'{{=department_id}}',
				onSelect:function(record){
					//刷新数据，重新读取省份下的城市，并清空当前输入的值
					
					opersgroup_id.combobox({
						url:'/operationpost/opersgroupinfo?id='+record.id,
						method:'get',
						valueField:'id',
						textField:'opersgroup_name',
						editable:false,
						panelHeight:'150',
						required:true,
					}).combobox('clear');	
				}
			})
			
			opersgroup_id = $('#opersgroup_id').combobox({
				url:'/operationpost/opersgroupinfo?id={{=department_id}}',
				method:'get',
				valueField:'id',
				textField:'opersgroup_name',
				editable:false,
				required:true,
				value:'{{=opersgroup_id}}'
			});
			
			ogproject_user = $('#ogproject_user').combobox({
				url:'/userpost/userinfo',
				valueField:'id',
				textField:'nickname',
				editable:false,
				required:true,
				value:'{{=ogproject_user}}'
			});
			
			ogproject_opuser = $('#ogproject_opuser').combobox({
				url:'/userpost/userinfo',
				valueField:'id',
				textField:'nickname',
				editable:false,
				required:true,
				value:'{{=ogproject_opuser}}'
			});
		});

</script>

<div style="padding: 5px;">
	<form method="post">
    <input type="hidden" name="id" />
		<table class="tableForm">
            <tr>
                <th style="width:80px;">部门运营组</th>
                <td>
					<input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
                        name="department_id" id="department_id" />                    
                    <input style="line-height:26px;border:1px solid #ccc;width:120px" class="easyui-combobox" 
                        name="opersgroup_id" id="opersgroup_id" />
                </td>
            </tr>
			<tr>
				<th style="width:80px;">项目名称</th>
				<td><input class="easyui-validatebox" data-options="required:true,validType:'length[1,50]'" name="ogproject_name">
				</td>
			</tr>
            <tr>
                <th style="width:80px;">项目负责人</th>
                <td>
					<input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
					name="ogproject_user" id="ogproject_user" />                    
                </td>
            </tr>
            <tr>
                <th style="width:80px;">运维负责人</th>
                <td>
					<input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
					name="ogproject_opuser" id="ogproject_opuser" />                    
                </td>
            </tr>
            <tr>
				<th style="width: 80px;">备注</th>
                <td colspan="3"><textarea name="comment" style="height: 50px;width: 97%;"></textarea>
				</td>
			</tr> 
		</table>
	</form>
</div>